<template>
  <div class="dialogBox width_100 height_100">
    <div class="box">
      <div class="head flex-between">
        <span class="title">{{title}}</span>
        <!-- <span class="closebtn el-icon-close" @click="closeEvent"></span>
         -->
          <img class="closebtn" @click="closeEvent" src="@/assets/dialogBox/images/close.png" alt="" >
      </div>
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      require: String,
      default: ''
    }
  },
  name: 'maxDialogBox', // 大模态框
  methods: {
    closeEvent () {
      this.$emit('closeMaxDialogBox')
    }
  }
}

</script>
<style lang="scss" scoped>
.dialogBox {
  position: fixed;
  z-index: 1997;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.49);
  .box{
    position: relative;
    width: 1200px;
    height: 768px;
    background: #FFFFFF;
    border-radius: 5px;
    top: 148px;
    margin: 0 auto;
    .head{
      width: 100%;
      height: 36px;
      background: rgba(48, 78, 236, 0.03);
      .title{
        font-size: 12px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 600;
        color: #273553;
        line-height: 36px;
        padding-left: 16px;
        }
      .closebtn{
        // line-height: 40px;
        // font-size: 14px;
        // font-weight: 200;
        // color: #BBC4D7;
        // padding-right: 20px;
        height: 20px;
        margin-right: 20px;
        cursor: pointer;
        }
    }
  }
}
</style>
